<?php
class ClasslistAction extends Action{
	
	public function main(){
		$ClassificationDAO = new  ClassificationDAO();
		$selected = new Selected();
		$ret = $ClassificationDAO->getList();
		for ($i=0; $i < count($ret); $i++) { 
			$ret[$i]['ClassDiaplayShow'] = $selected->getVal("ClassDiaplay",$ret[$i]['ClassDiaplay']);
			$ret[$i]['ClassDiaplayOrder'] = $selected->getVal("ClassDiaplayOrder",$ret[$i]['ClassDiaplayOrder']);
			$ret[$i]['ClassType'] = $selected->getVal("ClassType",$ret[$i]['ClassType']);

		}
		$this->_response['ret'] = $ret;
		//$this->_response['list'] = $this->_request['list'];
		//debug($this->_response['ret']);
	}

}